package com.aaa.service.impl;

import com.aaa.dao.DocheckAddDao;
import com.aaa.service.DocheckAddService;
import com.aaa.entity.CheckResult;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.time.LocalDateTime;


@Service
public class DecheckAddServiceImpl extends ServiceImpl<DocheckAddDao,CheckResult> implements DocheckAddService {

    @Resource
    private DocheckAddDao docheckAddDao;

    @Override
    public boolean addd(CheckResult checkResult) {
        checkResult.setCreateTime(LocalDateTime.now());
        int insert = docheckAddDao.insert(checkResult);
        return insert>0?true:false;
    }
}
